package com.huatai.bpmn.mapper;

import cn.hutool.json.JSONObject;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.huatai.bpmn.entity.DicEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 *  字典
 * </p>
 *
 * @author yxy
 * @since 2023-07-07
 */
@Mapper
public interface DicMapper extends BaseMapper<DicEntity> {

	@Select("select id,json_title from pmp_dic where pid=\"${id}\"")
    List<JSONObject> findChildrenData(String id);

}
